package com.atguigu.userprofile.util;

import java.util.ResourceBundle;

/**
 * 配置解析类
 */
public class MyPropsUtil {

    //解析properties文件:  InputStream  ClassLoader ....

   private static  ResourceBundle  rb = ResourceBundle.getBundle("config") ;

   public static String get(String key ){
       return rb.getString(key);
   }

    public static void main(String[] args) {
        String v = get("mysql.url");
        System.out.println(v);
    }
}
